{% extends "IpartekBlogBundle::layout.html.twig" %}

{% block noticias %}

	<h1>Noticias de WordPress</h1>
	{# dump(posts) #}

	{%  for post in posts %}
		<article>
			<header>
				<h2>{{ post.post_title }}</h2>
			</header>
			<section>
				<img src="#" />
				<p>{{ post.post_content }}</p>
			</section>
		</article>
		
	{% else %}
		<p>No hay noticias</p>
	{% endfor %}
{% endblock %}
